package com.youlin.dto.res;

import com.youlin.mybean.ResMapping;
import com.youlin.mybean.SetSubProp;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@NoArgsConstructor
@Data
@Accessors(chain=true)
@ResMapping(mappingClass = "com.youlin.entities.BygAppInfo")
public class AppInfoResDto {

    @ApiModelProperty(value="单位ID")
    private Integer appId;

    @ApiModelProperty(value="单位全称")
    private String appName;

    @ApiModelProperty(value="单位编号")
    private String appCode;

    @ApiModelProperty(value="省份ID")
    private Integer province;

    @SetSubProp(subProp = "areaName", subClass = "com.youlin.entities.BygArea", primaryKey = "province", subPrimaryKey = "areaId")
    @ApiModelProperty(value="省份")
    private String provinceStr;

    @ApiModelProperty(value="城市ID")
    private Integer city;

    @SetSubProp(subProp = "areaName", subClass = "com.youlin.entities.BygArea", primaryKey = "city", subPrimaryKey = "areaId")
    @ApiModelProperty(value="城市")
    private String cityStr;

    @ApiModelProperty(value="单位下告别厅数量")
    private Integer fhCount;

    @ApiModelProperty(value="单位下告别会数量")
    private Integer amCount;

    @ApiModelProperty(value="风俗模板ID")
    private Integer customId;

}

